export const objToArr = (obj = {}) => {
  return Object.keys(obj).reduce((result, key) => {
    result.push(obj[key]);
    return result;
  }, []);
};
export const arrToObj = (arr = [], identify = "id") => {
  return arr.reduce((result, prev) => {
    const key = prev[identify];
    result[key] = prev;
    return result;
  }, {});
};
